﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UIElements;

public class Canvas : MonoBehaviour
{
    public static bool willLose = false;
    private void Update()
    {
        if (Input.GetKeyDown(KeyCode.Return) || Input.GetMouseButtonDown((int)MouseButton.LeftMouse))
        {
            if (willLose)
            {
                LevelOver.Lose();
            }
            Time.timeScale = 1;
        }
    }
}
